package org.wsiz.vro.web.flow;

import org.springframework.stereotype.Component;
import org.wsiz.vro.domain.Account;
import org.wsiz.vro.domain.Address;
import org.wsiz.vro.domain.Role;
import org.wsiz.vro.domain.Film;

/**
 * Helper used from Spring Web Flow scripts to create new entity instance.
 */
@Component
public class DomainFactory {
    public Account getNewAccount() {
        return new Account();
    }

    public Address getNewAddress() {
        return new Address();
    }

    public Film getNewFilm() {
        return new Film();
    }

    public Role getNewRole() {
        return new Role();
    }
}